<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php echo config('shopName');?> - 留言列表 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="<?=ADMIN_CSS?>/general.css" rel="stylesheet" type="text/css" />
    <link href="<?=ADMIN_CSS?>/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>
    <span class="action-span1"><a href="<?php echo url("Admin/Index/main")?>"><?php echo config('shopName');?></a></span>
    <span id="search_id" class="action-span1"> -留言列表 </span>
    <div style="clear:both"></div>
</h1>
<div class="form-div">
    <form action="<?php echo url('Admin/Messages/lst');?>" name="searchForm" method="get">
        <img src="<?=ADMIN_IMG?>/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <input type="text" name="keyword" size="50" placeholder="留言内容" value="<?php echo $keyword?>" autocomplete="off" />
        <input type="submit" value=" 搜索 " class="button" />
    </form>
</div>

    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>编号</th>
                <th>服务类型</th>
                <th>服务时长/月</th>
                <th>公司</th>
                <th>行业</th>
                <th>手机</th>
                <th>留言内容</th>
                <th>时间</th>
                <th>电话回访</th>
                <th>操作</th>
            </tr>
            <?php foreach ($messages as $k=>$v): ?>
            <tr>
                <td class="first-cell" align="left">
                    <?php echo $v['id'];?>
                </td>
                <td align="left">
                    <?php echo $v['service_type'];?>
                </td>
                <td align="left">
                    <?php echo $v['month'];?>
                </td>
                <td align="left">
                    <?php echo $v['company'];?>
                </td>
                <td align="left">
                    <?php echo $v['business'];?>
                </td>
                <td align="left">
                    <?php echo $v['mobile_phone'];?>
                </td>
                <td align="left">
                    <?php echo $v['remark'];?>
                </td>
                <td align="center">
                    <?php echo formatDate($v['add_time']);?>
                </td>
                <td align="center">
                    是
                </td>

                <td align="center">
                    <a href="<?php echo url("Admin/Messages/review",array('id'=>$v['id']))?>" title="审核">审核</a> |
                    <a  onclick="return confirm('确定要删除吗');"  href="<?php echo url("Admin/Messages/delete",array('id'=>$v['id']))?>" title="移除">移除</a>
                </td>
            </tr>
            <?php endforeach;?>
            <tr>
                <td align="center" nowrap="true" colspan="9">
                    <?php echo $page;?>
                </td>
            </tr>
        </table>
    </div>
<?php require_once  resource_path('view/public/footer.php');?>
</body>
</html>